package cn.edu.thu.laud.lasql.parser;

import java.nio.ByteBuffer;
import java.util.List;

import cn.edu.thu.laud.lasql.function.iface.LaSQLLocalFunction;


public class LaSQLLocalFunctionParser extends LaSQLFunctionParser{

	public LaSQLLocalFunctionParser(String className, List<String> parameters) {
		super(className,parameters);
		
	}

	public LaSQLLocalFunctionParser(String string) {
		super(string);
	}

	public ByteBuffer getResult() throws Exception{
		return ((LaSQLLocalFunction)Class.forName(className).newInstance()).executeLocal(this.getParameters());
	}

}
